package org.batatasframework.support.database.sql.field;

import org.batatasframework.support.database.sql.TableRuntimeMaster;
import org.batatasframework.support.database.values.FieldValueHolder;
import org.batatasframework.support.database.values.FormatValueHolder;

public class FormatSelectFragment extends MultipleSelectFragment{
	
	private final String formatString;
	
//	public FormatSelectFragment(MasterTableRuntime master, String title, String formatString,
//			TableRuntime tableSource, String... fields) {
//		this(master, title, formatString);
//		append(tableSource, fields);
//	}

	public FormatSelectFragment(TableRuntimeMaster master, String title, String formatString) {
		super(master, title);
		this.formatString = formatString;
	}

	@Override
	public FieldValueHolder getValueHolder() {
		return new FormatValueHolder(this, formatString, fields);
	}
	
//	@Override
//	public ValueHolder buildValueHolder() {
//		return new FormatValueHolder(this, formatString, fields);
//	}
}
